// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router/index.js'
import Axios from 'axios'
import VueLazyLoad from 'vue-lazyload'   //引入懒加载插件

import 'common/stylus/index.stylus';    //引入公共的组件样式

Vue.config.productionTip = false;   //关闭生产模式下给出的提示
Vue.prototype.$http = Axios;

Vue.use(VueLazyLoad,{
    loading: require('common/image/default.png')
});

/* eslint-disable no-new */
new Vue({
    el: '#app',
    template: '<App/>',
    router,
    components: { App }
})
